


let num = 23.1


console.log(
  Math.round(num.toFixed(4)*1000)/1000 - 0
);


